{% load static %}
{% load mytags %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    {% block title %}
    {% endblock %}
    <link rel="stylesheet" type='text/css' href="https://cdn.jsdelivr.net/semantic-ui/2.2.4/semantic.min.css">
    <link rel="stylesheet" type='text/css' href="{% static 'css/me.css' %}">
    <link rel="shortcut icon" href="https://www.dusaiphoto.com/static/img/favicon.ico">
    {% block css %}
    {% endblock %}
</head>
<body>
<!--导航-->
<nav class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">希望</h2>
            <a href="{% url 'blog:index' %}"
                    {% if request.path == '/' %}
               class="active m-item item m-mobile-hide"
                    {% else %}
               class="m-item item m-mobile-hide"
                    {% endif %}>
                <i class="mini home icon"></i>&nbsp首页</a>

            <a href="{% url 'blog:types' %}"
                    {% if request.path|slice:'7' == '/types/' %}
               class="active m-item item m-mobile-hide"
                    {% else %}
               class="m-item item m-mobile-hide"
                    {% endif %}>
                <i class="mini idea icon"></i>&nbsp;分类</a>

            <a href="{% url 'blog:tags' %}"
                    {% if request.path|slice:'6' == '/tags/' %}
               class="active m-item item m-mobile-hide"
                    {% else %}
               class="m-item item m-mobile-hide"
                    {% endif %}>
                <i class="mini tags icon"></i>&nbsp;标签</a>

            <a href="{% url 'blog:archives' %}"
                    {% if request.path|slice:'10' == '/archives/' %}
               class="active m-item item m-mobile-hide"
                    {% else %}
               class="m-item item m-mobile-hide"
                    {% endif %}>
                <i class="mini clone icon"></i>&nbsp;归档</a>

            <a href="{% url 'blog:about_us' %}"
                    {% if request.path|slice:'10' == '/about_us/' %}
               class="active m-item item m-mobile-hide"
                    {% else %}
               class="m-item item m-mobile-hide"
                    {% endif %}>
                <i class="mini info icon"></i>&nbsp;关于我</a>

            <div class="right m-item item m-mobile-hide">
                <form action="{% url 'blog:search' %}" class="ui icon inverted transparent input m-margin-tb-tiny">
                    <input type="text" name='keyword' placeholder="输入标题或文章内容...">
                    <button type="submit" class="m-item item m-mobile-hide">
                        <i class="search link icon"></i>
                    </button>
                </form>
            </div>
        </div>
    </div>
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>
<!--中间内容-->
<div class="content">
    {% block content %}
    {% endblock %}
</div>


<!--底部footer-->
<footer class="footer ui inverted vertical segment m-padded-tb-massive">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="three wide column">
                <div class="ui inverted link list">
                    <div class="item">
                        <img src="{% static 'images/wechat.png' %}" class="ui rounded image" alt=""
                             style="width: 110px">
                    </div>
                </div>
            </div>

            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced ">最新博客</h4>
                {% show_new_blog %}
            </div>

            <div class="three wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced ">联系我</h4>
                <div class="ui inverted link list">
                    <a href="mailto:{% get_email %}?subject=问题反馈" class="item m-text-thin">Email：{% get_email %}</a>
                    <a href="http://wpa.qq.com/msgrd?v=3&uin={% get_qq %}&site=qq&menu=yes" class="item m-text-thin">QQ：{% get_qq %}</a>
                </div>
            </div>

            <div class="seven wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced ">Blog</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">{% get_introduce %}</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny">Copyright © 2020 Liuchangfu Designed by Liuchangfu</p>
    </div>
</footer>
<!--javascript-->
{% block javascript %}
{% endblock %}
</body>
</html>